import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  mode: 'history',
  routes: [
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/index')
    },
    {
      path: '/music',
      name: 'music-page',
      component: () => import('@/views/music')
    },
    {
      path: '*',
      redirect: '/index'
    }
  ]
})

export default router
